package com.cpit.platform.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.cpit.platform.dto.MainPageItem;

public interface MainPageItemRepository extends JpaRepository<MainPageItem, Long> {
	List<MainPageItem> findAll();
	MainPageItem findById(Integer id);
	MainPageItem findByName(String name);
	Page<MainPageItem> findByUser(String name, Pageable pageable);
}
